package com.java.module.chat.domain;

import com.java.common.lang.annotation.FileData;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.java.common.lang.annotation.Excel;
import com.java.common.lang.domain.BaseEntity;

/**
 * 聊天模块：群聊对象 chat_group
 * 
 * @author Administrator
 * @date 2023-02-16
 */
@FileData
public class ChatGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 群聊id */
    private Long groupId;

    /** 用户id 创建者 */
    @Excel(name = "用户id 创建者")
    private Long uid;

    /** 删除标志（0默认 非0表示已删除） */
    private Integer delFlag;

    /** 群聊名称 */
    @Excel(name = "群聊名称")
    private String name;

    /**
     * 群聊头像
     */
    @FileData
    private String avatar;

    public void setGroupId(Long groupId) 
    {
        this.groupId = groupId;
    }

    public Long getGroupId() 
    {
        return groupId;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("groupId", getGroupId())
            .append("uid", getUid())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("name", getName())
            .toString();
    }
}
